/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package sys.donto.telas;

import java.util.List;
import javax.swing.JOptionPane;
import sys.donto.dentista.Dentista;
import sys.donto.dentista.DentistaDAO;
import sys.donto.dentista.DentistaTableModel;
import sys.donto.util.Util;

/**
 *
 * @author JOABB
 */
public class telaDentista extends javax.swing.JDialog {
    private Dentista odonto;

    /**
     * Creates new form telaPaciente
     */
    public telaDentista() { //METODO CONSTRUTOR
        setModal(true);
        initComponents();
        setLocationRelativeTo(null);
        limpaCampos();
        
        setTitle("sysDONTO - Cadastro de Dentista"); //Define nome no titulo da tela
    }
    
     
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollBar1 = new javax.swing.JScrollBar();
        jPanel1 = new javax.swing.JPanel();
        jLabel5 = new javax.swing.JLabel();
        tfNome = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        tfCRO = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        tfEmail = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        tfTelefone = new javax.swing.JFormattedTextField();
        jLabel1 = new javax.swing.JLabel();
        btSair1 = new javax.swing.JButton();
        btNovo1 = new javax.swing.JButton();
        btSalvar1 = new javax.swing.JButton();
        btPesquisar1 = new javax.swing.JButton();
        btExcluir1 = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jComboBox1 = new javax.swing.JComboBox();
        jLabel11 = new javax.swing.JLabel();
        tfCRO1 = new javax.swing.JTextField();
        tfEndereco = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        tfBairro = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        tfCidade = new javax.swing.JTextField();
        btPesquisarCidade = new javax.swing.JButton();
        btAdicionarCidade = new javax.swing.JButton();
        tfCEP = new javax.swing.JFormattedTextField();
        jLabel15 = new javax.swing.JLabel();
        jLFundo = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));
        jPanel1.setLayout(null);

        jLabel5.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel5.setText("NOME*:");
        jPanel1.add(jLabel5);
        jLabel5.setBounds(20, 140, 50, 15);

        tfNome.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        tfNome.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tfNomeActionPerformed(evt);
            }
        });
        jPanel1.add(tfNome);
        tfNome.setBounds(70, 140, 610, 20);

        jLabel9.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel9.setText("Salário Base");
        jPanel1.add(jLabel9);
        jLabel9.setBounds(280, 200, 130, 15);

        tfCRO.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        tfCRO.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tfCROActionPerformed(evt);
            }
        });
        jPanel1.add(tfCRO);
        tfCRO.setBounds(360, 200, 230, 20);

        jLabel12.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel12.setText("TEL.*:");
        jPanel1.add(jLabel12);
        jLabel12.setBounds(30, 200, 40, 15);

        tfEmail.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jPanel1.add(tfEmail);
        tfEmail.setBounds(70, 230, 520, 20);

        jLabel13.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel13.setText("E-MAIL:");
        jPanel1.add(jLabel13);
        jLabel13.setBounds(20, 230, 50, 15);

        tfTelefone.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        try {
            tfTelefone.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("(##)####-####")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }
        jPanel1.add(tfTelefone);
        tfTelefone.setBounds(70, 200, 190, 20);

        jLabel1.setText("* Campos Obrigatórios");
        jPanel1.add(jLabel1);
        jLabel1.setBounds(20, 350, 160, 14);

        btSair1.setBackground(new java.awt.Color(0, 153, 153));
        btSair1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        btSair1.setForeground(new java.awt.Color(255, 255, 255));
        btSair1.setMnemonic('S');
        btSair1.setText("SAIR");
        btSair1.setToolTipText("Sair");
        btSair1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btSair1ActionPerformed(evt);
            }
        });
        jPanel1.add(btSair1);
        btSair1.setBounds(590, 380, 80, 30);

        btNovo1.setBackground(new java.awt.Color(0, 153, 153));
        btNovo1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        btNovo1.setForeground(new java.awt.Color(255, 255, 255));
        btNovo1.setMnemonic('N');
        btNovo1.setText("NOVO");
        btNovo1.setToolTipText("Novo");
        btNovo1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btNovo1ActionPerformed(evt);
            }
        });
        jPanel1.add(btNovo1);
        btNovo1.setBounds(220, 380, 70, 30);

        btSalvar1.setBackground(new java.awt.Color(0, 153, 153));
        btSalvar1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        btSalvar1.setForeground(new java.awt.Color(255, 255, 255));
        btSalvar1.setMnemonic('S');
        btSalvar1.setText("SALVAR");
        btSalvar1.setToolTipText("Salvar");
        btSalvar1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btSalvar1ActionPerformed(evt);
            }
        });
        jPanel1.add(btSalvar1);
        btSalvar1.setBounds(300, 380, 83, 30);

        btPesquisar1.setBackground(new java.awt.Color(0, 153, 153));
        btPesquisar1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        btPesquisar1.setForeground(new java.awt.Color(255, 255, 255));
        btPesquisar1.setMnemonic('P');
        btPesquisar1.setText("PESQUISAR");
        btPesquisar1.setToolTipText("Pesquisar");
        btPesquisar1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btPesquisar1ActionPerformed(evt);
            }
        });
        jPanel1.add(btPesquisar1);
        btPesquisar1.setBounds(390, 380, 103, 30);

        btExcluir1.setBackground(new java.awt.Color(0, 153, 153));
        btExcluir1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        btExcluir1.setForeground(new java.awt.Color(255, 255, 255));
        btExcluir1.setMnemonic('E');
        btExcluir1.setText("EXCLUIR");
        btExcluir1.setToolTipText("Excluir");
        btExcluir1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btExcluir1ActionPerformed(evt);
            }
        });
        jPanel1.add(btExcluir1);
        btExcluir1.setBounds(500, 380, 85, 30);

        jLabel3.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        jLabel3.setText("Dentista");
        jLabel3.setFocusable(false);
        jPanel1.add(jLabel3);
        jLabel3.setBounds(210, 40, 360, 40);

        jLabel10.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel10.setText("CRO*:");
        jPanel1.add(jLabel10);
        jLabel10.setBounds(30, 170, 40, 15);

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "-----", "Cirurgião Dentista", "op 2", "op 3" }));
        jPanel1.add(jComboBox1);
        jComboBox1.setBounds(360, 170, 230, 20);

        jLabel11.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel11.setText("Especialidade*");
        jPanel1.add(jLabel11);
        jLabel11.setBounds(270, 170, 140, 15);

        tfCRO1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        tfCRO1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tfCRO1ActionPerformed(evt);
            }
        });
        jPanel1.add(tfCRO1);
        tfCRO1.setBounds(70, 170, 190, 20);

        tfEndereco.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        tfEndereco.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tfEnderecoActionPerformed(evt);
            }
        });
        jPanel1.add(tfEndereco);
        tfEndereco.setBounds(70, 260, 520, 20);

        jLabel8.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel8.setText("END.*:");
        jPanel1.add(jLabel8);
        jLabel8.setBounds(20, 260, 50, 15);

        jLabel14.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel14.setText("BAIRRO*:");
        jPanel1.add(jLabel14);
        jLabel14.setBounds(0, 290, 70, 15);

        tfBairro.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        tfBairro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tfBairroActionPerformed(evt);
            }
        });
        jPanel1.add(tfBairro);
        tfBairro.setBounds(70, 290, 190, 20);

        jLabel6.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel6.setText("CIDADE*:");
        jPanel1.add(jLabel6);
        jLabel6.setBounds(290, 290, 60, 15);

        tfCidade.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        tfCidade.setEnabled(false);
        tfCidade.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tfCidadeActionPerformed(evt);
            }
        });
        jPanel1.add(tfCidade);
        tfCidade.setBounds(360, 290, 230, 20);

        btPesquisarCidade.setBackground(new java.awt.Color(0, 153, 153));
        btPesquisarCidade.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btPesquisarCidade.setForeground(new java.awt.Color(255, 255, 255));
        btPesquisarCidade.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sys/donto/imagens/Search 16.png"))); // NOI18N
        btPesquisarCidade.setToolTipText("Pesquisar Estado");
        btPesquisarCidade.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btPesquisarCidadeActionPerformed(evt);
            }
        });
        jPanel1.add(btPesquisarCidade);
        btPesquisarCidade.setBounds(600, 290, 33, 25);

        btAdicionarCidade.setBackground(new java.awt.Color(0, 153, 153));
        btAdicionarCidade.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        btAdicionarCidade.setForeground(new java.awt.Color(255, 255, 255));
        btAdicionarCidade.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sys/donto/imagens/add-16.png"))); // NOI18N
        btAdicionarCidade.setToolTipText("Cadastrar Estado");
        btAdicionarCidade.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btAdicionarCidadeActionPerformed(evt);
            }
        });
        jPanel1.add(btAdicionarCidade);
        btAdicionarCidade.setBounds(640, 290, 33, 25);

        tfCEP.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        try {
            tfCEP.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("##.###-###")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }
        jPanel1.add(tfCEP);
        tfCEP.setBounds(70, 320, 190, 20);

        jLabel15.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel15.setText("CEP*:");
        jPanel1.add(jLabel15);
        jLabel15.setBounds(30, 320, 40, 15);

        jLFundo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sys/donto/imagens/telaM.jpg"))); // NOI18N
        jPanel1.add(jLFundo);
        jLFundo.setBounds(0, 0, 740, 430);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 740, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 431, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 2, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents
    private void limpaCampos(){
        tfCRO.setText("");
        tfEmail.setText("");
        tfNome.setText("");
        tfTelefone.setText("");
        odonto=new Dentista();
        btExcluir1.setEnabled(false);
    }
    private void btSair1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btSair1ActionPerformed
        dispose();
    }//GEN-LAST:event_btSair1ActionPerformed

    private void btNovo1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btNovo1ActionPerformed
        limpaCampos(); //CHAMA METODO PARA LIMPAR CAMPOS
    }//GEN-LAST:event_btNovo1ActionPerformed

    private void btSalvar1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btSalvar1ActionPerformed
       if (Util.chkVazio(tfNome.getText(), tfCRO.getText(),tfTelefone.getText())){

        odonto.setNome(tfNome.getText());
        odonto.setCro(tfCRO.getText());
        odonto.setTelefone(tfTelefone.getText().replaceAll("\\D*", "")); //retira a máscara
        odonto.setEmail(tfEmail.getText()); //retira a máscara

        DentistaDAO dao = new DentistaDAO();
        dao.salvar(odonto);
        limpaCampos();

        JOptionPane.showMessageDialog(rootPane, "Cadastro de Dentista Efetuado com Sucesso!");

        }
    }//GEN-LAST:event_btSalvar1ActionPerformed

    private void btPesquisar1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btPesquisar1ActionPerformed
        limpaCampos();
        DentistaDAO dao = new DentistaDAO();
        List <Dentista> odontologos = (!tfNome.getText().isEmpty() ? dao.pesquisaDescricao(tfNome.getText())
            : dao.listar());

        DentistaTableModel ptm = new DentistaTableModel(odontologos);

        Object o = telaPesquisa.exibeTela(ptm, "Odontologo");

        if (o != null){
            odonto = new Dentista();
            odonto = dao.pesquisaId(Integer.valueOf(String.valueOf(o)));

            tfNome.setText(odonto.getNome());
            tfCRO.setText(odonto.getCro());
            tfTelefone.setText(odonto.getTelefone());
            tfEmail.setText(odonto.getEmail());
            
            btExcluir1.setEnabled(true);
        }
    }//GEN-LAST:event_btPesquisar1ActionPerformed

    private void btExcluir1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btExcluir1ActionPerformed
        if (JOptionPane.showConfirmDialog(rootPane,
                    "Deseja excluir Paciente?",
                    "Excluir?", JOptionPane.YES_NO_OPTION)
                    == JOptionPane.YES_OPTION) {
        DentistaDAO dao = new DentistaDAO();
        dao.remover(odonto);
        limpaCampos();

        JOptionPane.showMessageDialog(rootPane, "Dentista Excluído com Sucesso!");
        }else{
            limpaCampos();
        }        
        
    }//GEN-LAST:event_btExcluir1ActionPerformed

    private void tfCROActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfCROActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_tfCROActionPerformed

    private void tfNomeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfNomeActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_tfNomeActionPerformed

    private void tfCRO1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfCRO1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_tfCRO1ActionPerformed

    private void tfEnderecoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfEnderecoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_tfEnderecoActionPerformed

    private void tfBairroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfBairroActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_tfBairroActionPerformed

    private void tfCidadeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tfCidadeActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_tfCidadeActionPerformed

    private void btPesquisarCidadeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btPesquisarCidadeActionPerformed
        CidadeDAO dao = new CidadeDAO();
        List<Cidade> lista = dao.listar();
        CidadeTableModel ctm = new CidadeTableModel(lista);
        Object o = telaPesquisa.exibeTela(ctm, "cidade");
        Cidade cid;
        if (o != null) {
            cid = dao.pesquisaId(Integer.valueOf(String.valueOf(o)));
            paciente.setCidade(cid);
            tfCidade.setText(cid.getDescricao());
        }       // TODO add your handling code here:
    }//GEN-LAST:event_btPesquisarCidadeActionPerformed

    private void btAdicionarCidadeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAdicionarCidadeActionPerformed
        telaCidade tc = new telaCidade();
        tc.setVisible(true);        // TODO add your handling code here:
    }//GEN-LAST:event_btAdicionarCidadeActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(telaDentista.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(telaDentista.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(telaDentista.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(telaDentista.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new telaDentista().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btAdicionarCidade;
    private javax.swing.JButton btExcluir1;
    private javax.swing.JButton btNovo1;
    private javax.swing.JButton btPesquisar1;
    private javax.swing.JButton btPesquisarCidade;
    private javax.swing.JButton btSair1;
    private javax.swing.JButton btSalvar1;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JLabel jLFundo;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollBar jScrollBar1;
    private javax.swing.JTextField tfBairro;
    private javax.swing.JFormattedTextField tfCEP;
    private javax.swing.JTextField tfCRO;
    private javax.swing.JTextField tfCRO1;
    private javax.swing.JTextField tfCidade;
    private javax.swing.JTextField tfEmail;
    private javax.swing.JTextField tfEndereco;
    private javax.swing.JTextField tfNome;
    private javax.swing.JFormattedTextField tfTelefone;
    // End of variables declaration//GEN-END:variables
}
